package com.sca.commontest.test.designpattern.decorator;

/**
 * @Author: denglei
 * @Date: 2022/1/5 10:51
 * @Description:
 */
public class Decorator_two extends Decorator  {
    public Decorator_two(Human human) {
        super(human);
    }
    public void findClothes() {
        System.out.println("找到一件D&G。。");
    }

    public void findTheTarget() {
        System.out.println("在Map上找到神秘花园和城堡。。");
    }


    @Override
    public void wearClothes() {
        super.wearClothes();
        findClothes();
    }

    @Override
    public void walkToPlace() {
        super.walkToPlace();
        findTheTarget();
    }
}
